#include <iostream>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>

#include "Server.h"


int main(void) {
	cServer* server = new cServer(800,600, 2);

	//sf::Thread threadCharacter1(&cServer::launchTcpConnectionPlayer1);

	
	server->launchTCPConnectionPlayer1();
	server->launchTCPConnectionPlayer2();
	server->threadKeyBoardCharacter1->launch();
	server->threadKeyBoardCharacter2->launch();
	//server->threadWaitConnection1->launch();
	server->launchGame();
	std::cout << "Sortie de la partie" << std::endl;

}